﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SRAGWMCLib.OO
{
    /// <summary>
    /// Contains the attributes of the map
    /// </summary>
    public class MapAttributes
    {

        /// <summary>
        /// The maximum pixel width to ocupy in the website for the display of the Map and Features
        /// </summary>
        
        public static int Width { get; set; }

        /// <summary>
        /// The maximum pixel Height to ocupy in the website for the display of the Map and Features
        /// </summary>

        public static int Height { get; set; }

        /// <summary>
        /// The range that sets the Map and Features four coordinate points, 
        /// it is filled by the DisplayFeature in GWMHelper.
        /// NOTE: The coordinate points most be used like shown:
        /// X1 - Biggest Value of X1 if multiple Features or Maps are to be displayed, 
        /// X2 - Lowest Value of X2 if multiple Features or Maps are to be displayed, 
        /// Y1 - Lowest Value of Y1 if multiple Features or Maps are to be displayed, 
        /// Y2 - Biggest Value of Y2 if multiple Features or Maps are to be displayed
        /// </summary>

        public static object[] Range { get; set; }

        /// <summary>
        /// Fills the data into the MapAttributes
        /// </summary>
        /// <param name="pRng">Filled by DisplayFeature in GWMHelper Class, 
        /// contains the four coordinate points</param>
        /// <param name="pWidth">Gets the maximum Width of the area of the map to be displayed in the website</param>
        /// <param name="pHeight">Gets the maximum Height of the area of the map to be displayed in the website</param>

        public MapAttributes(object[] pRng, int pWidth, int pHeight) 
        {
            Range = pRng;
            Width = pWidth;
            Height = pHeight;   
        }
    }
}
